<?php
/*
	插件概览
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'list';
if($_RQ['op']=='list'){
	$pindex = max(1, intval($_RQ['page']));
	$psize = 15;
	$params=array('uniacid'=>$_SESSION['uniacid'],'status'=>1);
	$postdata=get_postdata();
	if($postdata['keyword']  && $postdata['keyword']!='juli'){
		$params['title like']='%'.trim($postdata['keyword']).'%';
	}
	$fields=array('id','uniacid','paixu','title','image','pcate','ccate','price','status','createtime','total','salenum','unit','saletype');
    $orderby='paixu desc';
	$total='';
	$return['list']=pdo_getslice('jy_supplier_goods',$params,array($pindex,$psize),$total,$fields,'',$orderby);
	exi($return);
}